package wang.aweb.childcar.service;

import com.github.pagehelper.PageInfo;
import wang.aweb.childcar.model.pojo.Agent;
import wang.aweb.childcar.model.query.AgentParam;
import wang.aweb.childcar.model.req.AddAgentReq;
import wang.aweb.childcar.model.req.UpdateAgentReq;
import wang.aweb.childcar.model.vo.AgentVO;

import java.security.NoSuchAlgorithmException;
import java.util.List;

public interface AgentService {
    List<Agent> getAll();

    void deleteAgentById(Integer id);

    void create(AddAgentReq addAgentReq) throws NoSuchAlgorithmException;

    PageInfo getList(Integer page, Integer limit, AgentParam agentParam);

    void update(Agent updateAgentReq);

    Agent getById(Integer agentId);

    void updateMoneyById(String orderNo,Integer id, Integer comrateMoney);

    Integer doLogin(String openid, String username, String password);

    void disableOrEnable(Integer id);

    void jiesuan(Integer id, Float money);

    AgentVO findVOById(Integer agentId);

    AgentVO selectByMobile(String agentmobile);
    AgentVO selectByUsername(String username);
}
